/*
* seajs.config.pc
*/

seajs.develop = true;
// 模块根路径
seajs.root = seajs.develop ? '/src' : '';
// api管理
seajs.api = {
	sooccloud: seajs.root + (seajs.develop ? '/test/sooccloud.json' : ''),
	//获取网盘数据
	getDisk: seajs.root + (seajs.develop ? '/test/getDiskList.json' : ''),
	//删除网盘文件
	diskDelete: seajs.root + (seajs.develop ? '/test/action.json' : ''),
	//重命名网盘文件
	diskEdit: seajs.root + (seajs.develop ? '/test/changeName.json' : ''),
	//获取网盘目录节点
	getNodes: seajs.root + (seajs.develop ? '/test/getNodes.json' : ''),
	//网盘移动文件
	moveFile: seajs.root + (seajs.develop ? '/test/action.json' : ''),
	//上传
	upload: seajs.root + (seajs.develop ? '/test/fileupload.php' : ''),
	//创建文件夹
	diskCreateFolder: seajs.root + (seajs.develop ? '/test/action.json' : ''),
	//获取习题库列表
	getExercises: seajs.root + (seajs.develop ? '/test/getExercises.json' : '')

};

seajs.config({
	base: seajs.root + "/static/modules",
	paths: {
		"app" : seajs.root,
		"js" : seajs.root + "/static/js",
		"lib": seajs.root + "/static/lib",
		"template": seajs.root + "/components"
	},
	alias: {
		"audio"		     : "audio/audio",
		"copy"		     : "copy/ZeroClipboard",
		"flv"		     : "flv/flv",
		"hook"	 	     : "hook/hook",
		"jquery" 	     : "jquery/1/jquery.js",
		"face" 	     	 : "face/jquery.qqFace.js",
		"uploadify" 	 : "uploadify/jquery.uploadify.js",
		
		"ztree-core" 	 : "jquery.ztree.core-3.5.js",
        "echarts-plain": "echarts/echarts-plain.js",
        "base64" 	     : "jquery.base64.js",
        "limitheight" 	 : "limitheight.js",
        "limithtml" 	 : "limithtml.js",
		"ztree-excheck"  : "jquery.ztree.excheck-3.5.js",
		// "WdatePicker" 	     	 : "date/WdatePicker.js",
		"validform"      : "validform/validform",
		"My97DatePicker" : "My97DatePicker/WdatePicker",
		"raty"		     : "raty/raty",
		"upload"         : "upload/upload",
		"makethumb"      : "upload/makethumb",
		"localResizeIMG" : "upload/localResizeIMG",
		"video"		     : "video/video",
		"webuploader"    : "webuploader/webuploader",
		// localstorage缓存
		"seajs-localcache" : "seajs/seajs-localcache",
		// debug
		"seajs-debug" : "seajs/seajs-debug"
	},
	preload:['manifest','seajs-localcache'],
    localcache:{
        timeout: 30000
    },
    map:[
		[ /^(.*\/static\/js\/new\/.*\.(?:js))(?:.*)$/i, '$1?20170706' ],
		[ /^(.*\/static\/js\/.*\.(?:js))(?:.*)$/i, '$1?20170706' ]
	],
    comboExcludes: /jquery\.js/ 	// 从 combo 中排除掉 jquery.js 
});
